﻿using System.Configuration;

namespace Nana.Web.Compressing
{
  public class CompressionModuleConfig
    : ConfigurationSection
  {
    [ConfigurationProperty("compressingEventChoice", DefaultValue = CompressingEventChoice.Default)]
    public CompressingEventChoice EventChoice
    {
      get
      {
        return this.GetConfig(c => c.EventChoice);
      }
      set
      {
        this.SetConfig(c => c.EventChoice, value);
      }
    }

    [ConfigurationProperty("contentTypeTesters")]
    public CompressionTesterCollection ContentTypeTesters
    {
      get
      {
        return this.GetConfig(c => c.ContentTypeTesters);
      }
    }

    [ConfigurationProperty("dynamicContentFilters")]
    public CompressionFilterCollection DynamicContentFilters
    {
      get
      {
        return this.GetConfig(c => c.DynamicContentFilters);
      }
    }
    [ConfigurationProperty("staticContentFilters")]
    public CompressionFilterCollection StaticContentFilters
    {
      get
      {
        return this.GetConfig(c => c.StaticContentFilters);
      }
    }
  }
}
